<?php
defined('BY_JYA') or exit('error');
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
$return=array();

if($_RQ['op']=='get'){
	$return['item']=array();
	$return['htmls']=array (
		  'type' => 'edit',
		  'post' => 'post',
		  'edit_tab' => '测试一下',
		  'edits' => 
		  array (
		    array (
		      'title' => '参数设置',
		      'list' => 
		      array (
				array ('name' => 'image','type' => 'image','title' => '上传营业执照'),
		      ),
		    ),
		  ),
		);
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();	
	if(!$postdata['image']){
		exi('请上传营业执照','error');
	}
	$res=$this->model('model')->upimg($postdata['image']);
	exi('返回结果:'.ijson_encode($res));
}
?>